package com.kitty.game.hunqiao.message;


import com.kitty.game.hunqiao.model.HunQiaoZhuRuEquipInfo;
import com.kitty.mina.Modules;
import com.kitty.mina.annotation.MessageMeta;
import com.kitty.mina.message.Message;
import com.kitty.game.hunqiao.message.HunQiaoCangKu;

import java.util.List;

/**
 * 注入魂窍，显示在魂窍孔里，回包
 */
@MessageMeta(module = Modules.MSG_INVENTORY,cmd =2)
public class HunQiaoRespEquipInfo extends Message {
    private List<HunQiaoZhuRuEquipInfo> list;//装备列表

    public List<HunQiaoZhuRuEquipInfo> getList() {
        return list;
    }

    public void setList(List<HunQiaoZhuRuEquipInfo> list) {
        this.list = list;
    }

    public void addMore(){
        this.list.forEach(hunQiaoZhuRuEquipInfo -> {
            HunQiaoCangKu.addMore(hunQiaoZhuRuEquipInfo.getEquipFields());
        });
    }

}
